package com.linzm.structuraltype.adapter01.enums;

import com.linzm.structuraltype.adapter01.mediaplayer.Mp4Player;
import com.linzm.structuraltype.adapter01.mediaplayer.VlcPlayer;

/**
 * @Author zimingl
 * @Date 2023/4/15 21:57
 * @Description: MediaType
 */
public enum MediaTypeEnum {
    VLC("vlc", "vlc", VlcPlayer.class),
    MP4("mp4", "mp4", Mp4Player.class),
    MP3("mp3", "mp3", null);

    private final String type;

    private final String desc;

    private final Class<?> clazz;

    MediaTypeEnum(String type, String desc, Class<?> clazz) {
        this.type = type;
        this.desc = desc;
        this.clazz = clazz;
    }

    public Class<?> getClazz() {
        return clazz;
    }
}
